package com.mio.web.entity.product;

import java.util.Date;

import org.durcframework.core.expression.annotation.ValueField;
import org.durcframework.core.support.SearchEasyUI;
import org.durcframework.core.util.DateUtil;


public class ProductSch extends SearchEasyUI{


	private Date createdStartSch;
	private Date createdEndSch;

	@ValueField(column = "createdTime", equal = ">=")
	public Date getCreatedStartSch() {
		return createdStartSch;
	}

	public void setCreatedStartSch(Date createdStartSch) {
		this.createdStartSch = createdStartSch;
	}

	@ValueField(column = "createdTime", equal = "<")
	public Date getCreatedEndSch() {
		if (createdEndSch != null) {
			return DateUtil.getDateAfterDay(createdEndSch, 1);
		}
		return createdEndSch;
	}

	public void setCreatedEndSch(Date createdEndSch) {
		this.createdEndSch = createdEndSch;
	}


    private Integer idSch;
    private Integer mainTypeIdSch;
    private Integer productTypeIdSch;
    private String productNameSch;
    private Double priceSch;
    private String sImgUrlSch;
    private String mImgUrlSch;
    private String productPropertySch;
    private String introductionSch;
    private String createdTimeSch;
    private String editedTimeSch;
    private Boolean isDeletedSch = false;
    private Integer sortIdSch;

    public void setIdSch(Integer idSch){
        this.idSch = idSch;
    }
    
    @ValueField(column = "id")
    public Integer getIdSch(){
        return this.idSch;
    }

	public void setMainTypeIdSch(Integer mainTypeIdSch) {
		this.mainTypeIdSch = mainTypeIdSch;
	}
    
    @ValueField(column = "mainTypeId")
    public Integer getMainTypeIdSch() {
		return mainTypeIdSch;
	}


	public void setProductTypeIdSch(Integer productTypeIdSch){
        this.productTypeIdSch = productTypeIdSch;
    }
    
    @ValueField(column = "productTypeId")
    public Integer getProductTypeIdSch(){
        return this.productTypeIdSch;
    }

    public void setProductNameSch(String productNameSch){
        this.productNameSch = productNameSch;
    }
    
    @ValueField(column = "productName")
    public String getProductNameSch(){
        return this.productNameSch;
    }

    public void setPriceSch(Double priceSch){
        this.priceSch = priceSch;
    }
    
    @ValueField(column = "price")
    public Double getPriceSch(){
        return this.priceSch;
    }

    public void setSImgUrlSch(String sImgUrlSch){
        this.sImgUrlSch = sImgUrlSch;
    }
    
    @ValueField(column = "sImgUrl")
    public String getSImgUrlSch(){
        return this.sImgUrlSch;
    }

    public void setMImgUrlSch(String mImgUrlSch){
        this.mImgUrlSch = mImgUrlSch;
    }
    
    @ValueField(column = "mImgUrl")
    public String getMImgUrlSch(){
        return this.mImgUrlSch;
    }

    public void setProductPropertySch(String productPropertySch){
        this.productPropertySch = productPropertySch;
    }
    
    @ValueField(column = "productProperty")
    public String getProductPropertySch(){
        return this.productPropertySch;
    }

    public void setIntroductionSch(String introductionSch){
        this.introductionSch = introductionSch;
    }
    
    @ValueField(column = "introduction")
    public String getIntroductionSch(){
        return this.introductionSch;
    }

    public void setCreatedTimeSch(String createdTimeSch){
        this.createdTimeSch = createdTimeSch;
    }
    
    @ValueField(column = "createdTime")
    public String getCreatedTimeSch(){
        return this.createdTimeSch;
    }

    public void setEditedTimeSch(String editedTimeSch){
        this.editedTimeSch = editedTimeSch;
    }
    
    @ValueField(column = "editedTime")
    public String getEditedTimeSch(){
        return this.editedTimeSch;
    }

    public void setIsDeletedSch(Boolean isDeletedSch){
        this.isDeletedSch = isDeletedSch;
    }
    
    @ValueField(column = "isDeleted")
    public Boolean getIsDeletedSch(){
        return this.isDeletedSch;
    }

    public void setSortIdSch(Integer sortIdSch){
        this.sortIdSch = sortIdSch;
    }
    
    @ValueField(column = "sortId")
    public Integer getSortIdSch(){
        return this.sortIdSch;
    }


}